import formDesigner from '@/components/formDesigner/formDesigner.vue';
import formBuilder from '@/components/formDesigner/formBuilder.vue';
import formViewer from '@/components/formDesigner/formViewer.vue';
import fancyEditor from '@/components/formDesigner/extend/fancyEditor.vue';
import fancyHtml from '@/components/formDesigner/extend/fancyHtml.vue';
import fancyText from '@/components/formDesigner/extend/fancyText.vue';
import fancyBarCode from '@/components/formDesigner/extend/fancyBarCode.vue';
import fancyDialogList from '@/components/formDesigner/extend/fancyDialogList.vue';
import fancyTree from '@/components/formDesigner/extend/fancyTree.vue';
import fancyUpload from '@/components/formDesigner/extend/fancyUpload.vue';
// import iconDialog from './iconDialog';
// 导入必须得CSS和图标
import '@/assets/style/designer.css';
import '@/assets/iconfont/iconfont.js';
import 'element-plus/dist/index.css';
// 引入所有图标
import * as Icons from '@element-plus/icons-vue';
const plugins = {
    install: (app) => {
        app.component('form-designer', formDesigner);
        app.component('form-builder', formBuilder);
        app.component('form-viewer', formViewer);
        app.component('fancy-editor', fancyEditor);
        app.component('fancy-html', fancyHtml);
        app.component('fancy-text', fancyText);
        app.component('fancy-bar-code', fancyBarCode);
        app.component('fancy-dialog-list', fancyDialogList);
        app.component('fancy-tree', fancyTree);
        app.component('fancy-upload', fancyUpload);
        // 循环注册所有图标
        for (const name in Icons) {
            //@ts-ignore
            // app.component(name, Icons[name]);
        }
        // app.component('icon-dialog',iconDialog);
    }
};
export default plugins;
